#!/usr/bin/env python
#-------------------------------------------------------------------------------
#   file std_ids.py
#   brief
#       ZetCode wxPython tutorial
#
#       This example shows standard IDs / ICONs
#
#       author: Jan Bodnar
#       website: www.zetcode.com
#       last modified: September 2011
#
#   $Id: $
#-------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
import wx

class Example(wx.Frame):
           
    def __init__(self, *args, **kw):
        super(Example, self).__init__(*args, **kw) 
        self.InitUI()
                
    def InitUI(self):
        pnl = wx.Panel(self)
        grid = wx.GridSizer(3, 2)

        grid.AddMany([
            (wx.Button(pnl, wx.ID_CANCEL),  0,  wx.TOP|wx.LEFT, 9),
            (wx.Button(pnl, wx.ID_DELETE),  0,  wx.TOP|wx.LEFT, 9),
            (wx.Button(pnl, wx.ID_SAVE),    0,  wx.TOP|wx.LEFT, 9),
            (wx.Button(pnl, wx.ID_EXIT),    0,  wx.TOP|wx.LEFT, 9),
            (wx.Button(pnl, wx.ID_STOP),    0,  wx.TOP|wx.LEFT, 9),
            (wx.Button(pnl, wx.ID_NEW),     0,  wx.TOP|wx.LEFT, 9)
            ])

        self.Bind(wx.EVT_BUTTON, self.OnQuitApp, id=wx.ID_EXIT)
        pnl.SetSizer(grid)

        self.SetSize((245, 200))
        self.SetTitle("Standard IDs")
        self.Centre()
        self.Show(True)

    def OnQuitApp(self, event):
        self.Close()

#-------------------------------------------------------------------------------
#   Main entry point
#   - Init the application
#   - Run the main loop
#-------------------------------------------------------------------------------
def main():
    ex = wx.App()
    Example(None)
    ex.MainLoop()    


#-------------------------------------------------------------------------------
#   Run main (if main)
#-------------------------------------------------------------------------------
if __name__ == '__main__':
    main()

#
#   End: listbox_1.py
#
